<?php

$router->connect(new URIPattern(array(
	'controller' => 'Blog',
	'view' => 'index',
	'uri' => '^/$',
	'params' => array(
		'a' => 'b'
	)
)));

$blog_router = new URIRouter();
$blog_router->connect(new URIPattern(array(
	'view' => 'post_list',
	'uri' => '^(list/)?$',
	'params' => array(
		// This is not used, but just a sample of how parameters work
		'order_by' => 'datetime-field'
	)
)));
$blog_router->connect(new URIPattern(array(
	'view' => 'detail',
	'uri' => '^detail/(?P<id>\d+)/$'
)));

// Add it to the main router
$router->connect_router(new URIPattern(array(
	'controller' => 'Blog',
	'uri' => '^/blog/'
)), $blog_router);

?>